/**
 * Created by TC on 2016/3/25.
 */

var ngRouter = angular.module('ngRouter',['ngRoute']);

ngRouter.config(function ($routeProvider) {
  $routeProvider.when('/news', {
    templateUrl:'./view/news.html',
    controller:'newsController'
  }).when('/business', {
    templateUrl:'./view/join.html',
    controller:'joinController'
  }).when('/admin/login', {
    templateUrl:'./view/login.html',
    controller:'loginController'
  }).when('/admin/default', {
    templateUrl:'./view/default.html',
    controller:'defaultPageController'
  }).when('/admin/join', {
    templateUrl:'./view/join.html',
    controller:'joinController'
  }).when('/admin/manager', {
    templateUrl:'./view/manager.html',
    controller:'managerController'
  }).when('/admin/news', {
    templateUrl:'./view/news.html',
    controller:'adminNewsController'
  }).when('/', {
    templateUrl:'./view/home.html',
    controller:'homeController'
  });
});